package com.zryc.shop.ums.controller;

import com.zryc.shop.base.Result;
import com.zryc.shop.ums.service.IMemberLevelService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 会员等级表 前端控制器
 * </p>
 *
 * @author zhaozhao
 * @since 2024-01-16
 */
@RestController
@Api(tags = "会员等级接口")
@RequestMapping("/ums/memberLevel")
public class MemberLevelController {

    @Autowired
    private IMemberLevelService memberLevelService;

    @GetMapping("/list")
    @ApiOperation("查询默认等级为defaultStatus的memberLevel")
    public Result list(@RequestParam Integer defaultStatus){
        return Result.ok(memberLevelService.list(defaultStatus));
    }


}
